

#include <ESP8266WiFi.h>
void splitString(String str, String dot, String arr[]) {  
  
  int commaIndex = str.indexOf(dot);
  int index = 0;
  while (commaIndex != -1) {  
    arr[index] = str.substring(0, commaIndex);  
    str = str.substring(commaIndex + 1);  
    commaIndex = str.indexOf(dot);  
  }  
  arr[str.length()] = str; // 处理最后一个元素  
  Serial.println(arr[0]);
}  